package org.osomit.sacct.builder;

import org.osomit.sacct.entity.SecureResponse;

import java.util.Map;

/**
 * @author Jian Fang (John.Jian.Fang@gmail.com)
 *
 * Date: Jul 2, 2009
 */
public class SecureResponseBuilder extends BaseBuilder<SecureResponse>{

    public SecureResponse build(Object object) {
        if (object != null) {
            SecureResponse response = new SecureResponse();
            Map map = (Map) object;
//            response.setSecured((Boolean) map.get(SecureResponse.SECURED));
            response.setResponse((String) map.get(SecureResponse.RESPONSE));

            return response;
        }

        return null;
    }
}
